k&r; exercise 1.6 - improve tests
k&r; exercise 1.8 - use `unsigned` for counting occurrences