Initial commit of classes for math functions.

Initial commit of classes for math functions.