trie data structure using recursion