initial setup for Counting Sort 3
final version for Counting Sort 3