`quicksort` with special acc