counting inversions by divide and conquer