Adding greatest common divisor function