Add an example of Scala's @tailrec annotation