A C# solution for the Ninth Annual ICFP contest: http://www.boundvariable.org/task.shtml