Added an example using C++ vectors