algorithms_inversions