compute the greatest common divisor using euclid's algorithm
github.com/substack/node-gcd
substack/node-gcd