simple countingsort implementation in python