Benchmark of number_of_inversions