Counting Sort Algorithm In Data Structures In Javascript