Use Eculidean algorithm to determine greatest common divisor of two integers.
Use the source