Templates for the MegaMiner C++ client