My attempts at the 99 Scala problems