An immutable list in Scala