counting inversions using merge sort