create greatestCommonDivisor