2 closest points - n^2 complexity