gcd, lcm on collection: use reduce instead of splatting.