Update CellularAutomaton class and its tests