Counts the frequencies of a word in a txt.file using binary search trees.