fixed quicksort example