datastructure: trie: adding code for trie implementation