MathLib written in C++