Numeric library in C++ with basic methods