Commented flatten.
Added a list flattening procedure
Added counting-sort
These are just some misc scripts I put online in case someone finds them useful. They are all written for guile scheme, but should be easily portable across implementations. See my data-structures repo for some data structure goodness
You can find license on the top of the files. Most of it is a permissified ISC license with a simplified warranties disclaimer (I live in a jurisdiction where the capital letters don't really mean much). The copyright and license notice only have to appear in source copies.
If you are not comfortable with a changed license, you may use the ISC license for those files.