simple c++ template lib for the most basic functions