pigeon hole (or counting sort)