Exercise 5: Quicksort with cutoff to insertion sort