cellular automata models in R