Implementation of a Trie