Added a few comments. Sorting points by x only once before call to closestPairRec.