added C implementation to calculate Factorial of a number