reverse order of words in input string using STL vectors OK