2D → 1D Version 2 (Faster but worse) | ScratchStats