quicksort counting comparisons