Added a example of templates in C++