find greatest common divisor of two ints recursively in ruby