add several small but very usefull C++ files, which solve common problems