simple 1d cellular automata (wolfram style)