Metaprog to simulate a C++ Vector