added quicksort with comparison counter