hr counting sort 1