Scala code to generate the partition sets of a given size.