first attempt for Counting Sort 2
final code for Counting sort 2