QuickSort and updated CountingSort