K - frequent words in a string file. Version of the maxHeap/HashMap solution.