House cleaning on word frequency C++ program