Calculate Term-Frequency Using Trie tree

Insert Term into Trie and increase the frequency number.