closest pair of points problem