An algorithm that makes quicksort faster