Added CalculateNFactorial