Added generation of every permutation