added error and gamma functions to MathHelper