Implemented Counting Sort 2 solution