Added a variation of the word frequency C++ program to read from files