quicksort cleanup