added array permutations print method