multilevel octree implementation