Cluster the close points using a quadtree