fixed quickSort, need to reverse mergeSort in place