CommonTypes Namespace
FactorialSmallLimit = 34;
CommonTypes
Fast factorial
For small values of N, calculate using 2*3*..*N, and cache result. For larger values of N, calculate using Gamma(N+1)