Go trie implementation