cleaned powerset
permutation changed with for [recursion] structure