implemented counting sort, cool idea!