Working version of MergeSort. Starting on CountInversion