a couple examples of versitility of c++ vector