Hydrodynamics and time correlation functions for cellular automata