Do first two tests of Ninety-Nine Scala Problems(http://aperiodic.net/phil/scala/s-99/)