Adding a program to calculate factorial of a given number with iterative method