closest pair - brute force