pub fn gcd(a: i64, b: i64) -> Result<i64, EcoString>
Calculates the greatest common divisor of two integers.