templated

Changed existing code to templated C++ class