Text Justification in C++