Vector example before C++11