added octree implementation