Implemented ClosestPairs with tests. Also CountInversions with tests