Scala: Functional Sets