Add another solution to compute the greatest common divisor