Replaced Powerset function

Replaced powerset function with combn. Does not have the same list
structure as powerset, so will play with that and replace for() loops
next.