faster lcm, gcd