rollback quicksort to random pivot version