Added the math class

A collection of calculations I got tired of googling