changed dictionary to list
finished counting sort