ex 1.2.1 - find closest pair of points