Monads, Cellular Automata And Neural Nets