Added gcd method.
Added lcm method.