MergeSort + count inversions