Added MaxMath class for general, advanced mathematical functions