Counting sort and radix sort