finding powerset of a list