Create collection classes using templates in C++.