added gcd for sequences
added lcm