an optimized implementation of John Conway's Game of Life