updated added a vect.cpp example which is example.cpp using vectors instead of lists