Added MathEx class file.