[addVectors] Updated addVectors example for C++