Closest Pair 2D algorithm