GCD function

Greater Common Denominator