99 Scala problems taken from http://aperiodic.net/phil/scala/s-99/