finish up the first problem set where we want to count the number of
inversions in a large list of numbers