Unsorted Nimrod code that I wrote for some reason (largely Rosetta Code)