Efficient Neighbor Finding Algorithms In Quadtree And Octree