wrote quickSortInPlace and for quickSort, rename unsorted to sorted