Additive Automata and Associative Memories