correct a bug to sort the first two items
encapsulate the helper function so that quicksort has the same api as mergesort
testing of quicksort