Added equal operator with gcd and reduce functions.