brute force closest pair algorithm