An empirical method for modelling and simulating some complex macroscopic phenomena by cellular automata