quicksort and mergesort of a couple of array types