Added MathHelper class for useful functions