Compute Factorial in an iterative manner