Math lib update

Changing from OOP math to functional... :[