Quicksort with no extra space