Trie Implementation - prototype