removed unneeded helper function
qsort-in-place now passes test