find greatest common divisor of two ints in swift