qsort versus counting sort