Prefix tree to read text file and identify frequecy of every word.