State and transitions landscape model - Cellular automata version on C