Elementary cellular automaton in OpenGL