some implementations of mathematics with c++