Permutation + bugfix

new feature
- use query to easliy build permutations

bugfix
- \#take used to iterate whole iterable in every case