uva 10474: half counting sort