Associativity of the Greatest Common Divisor