Added octree for discrete coordinates