Get the greatest common divisor of given numbers.