Quicksort clean up