added ternary trie with put and get ops