Algorithm for finding the closest pair of n points in an m-dimensional space.