Cellular automata - Grain growth algorithm