quick sort and counting sort