I\'m designing an algorithm to do the following: Given array A[1... n], for every i < j, find all inversion pairs such that A[i] > A[j]
A[1... n]
i < j
A[i] > A[j]
Use mergesort, in merge step incremeant counter if the number copied to output is from right array.