adding vector_demo.cpp

A vector tutorial is mage out of test_vector.cpp and print_vector.cpp