Removed unnecessary dynamic allocation with cTextWindow, used stack allocation instead; used std::vector instead of raw C-style arrays