Create C++ Generic Class