Voxel world to quadtree algorithm | ScratchStats