adding naive implementation for finding the closest pair of points in a 2D plane