Solution of Closest Pair of Points problem.