solve travelling wave celluar automata