Improve quicksort with random.