Restored original quicksort