finished the prototype of the octree