A gcd example function

This R function implements Euclid's algorithm for computing a greatest common divisor. Most of the work is done checking domain conditions. The actual algorithm expresses the iterative process recursively.