Find closest Pair algorithm running at Θ(nlogn)