comparisons in naive quicksort