add gcd and lcm