cellular automata speed improvement