Update Quicksort implementation to sort in-place.