Updated CubeManager to use MortonNumber