Implementation of Octree