Added function sum, mean, sqr and clamp and meta versions of gcd and lcm.