closest pair problem's solution