simple countingsort implimentation in python