Slightly expanded the counting-sort() comment.
Fixed a stupid type bug in stable-counting-sort() and started to simplify test().