Simple  C++ Vector class