array: closest pair of points