I have the following class, which is meant to compute the set of all ordered sets:
class PowerSet(val inputSet: List, val minLength: Int = 4) {