Math funcs

Implemented most of the math functions and got them passings tests. Only the unimplemented functions have pending tests right now.