Statistical Mechanics Of Cellular Automata