making recursive funcs to express gcd as linear combo