Code cleanup.
Missed some things.
Counting sort implementation and unit tests.
Corrected the algorithm.