hr counting sort 4