finished octree implementation