Heap's algo Permutations amount will always be equal to factorial of initial elements amount Heap's algo implementation taken from here