Add base math to the project.

Create base math for common math interface.