Solving factorial of big numbers