added the Trie data structure implementation