comments updated for counting sort