moved permutations calculations to modules/permutagen and added asarray asobject and with concat and tests