Solutions to http://aperiodic.net/phil/scala/s-99/