Counting Inversions n log(n)