inversions improvement
quicksort compares count