Simple Math Library in C++