Added code for finding the closest pair of points.