My solutions to s-99 (http://aperiodic.net/phil/scala/s-99/)