Finding GCD using recursion and Iteration