Analysis of quicksort