Straightforward implementation of an adaptive automaton in Golang.