N-cube algorithm 3 | ScratchStats