Improvements to C++ Sentence scramble program