A straightforward implementation of cellular automata in C