(* Finds the GCD of two integers using Euclid's algorithm. *) (* Based on a program by Chuck Hoffman. *) function remainder