added order to gcd function family
added order to gcd function family.