Cellular automata model for gene networks