Trie implementation based on a minimal automaton in Go