recursive print trie