Calculate permutations (#715)

Calculate permutations (#715)

Use P(n,r)=n!(n−r)!P(n,r) = \frac{n!}{(n-r)!} for ordered selections.