Java implementation for Wolfram cellular automata rules