Fix quicksort partition analysis