Added XPTemplate C++ templates