a toy implementation of some containers in C++