Scala Sets, HW 2 from Functional Prog. in Scala course from EPFL