Use more meaningful parameter names.
Use new instead of an array so that counting_sort throws bad_alloc.
Add an overload of counting_sort.
Overload counting-sort algorithms to better support default arguments.
Use scoped_array in counting_sort.
Counting sanity test.