now merge sort calculates the number of inversions, and prints that out, not the sorted array
 modified quicksort, so it doesn't return the array, but rather alters the passed in array. this provides no functional change, but it makes it cleaner