MergeSort, CountInversions, ClosestPoints in racket