implementation of http://en.wikipedia.org/wiki/Conway's_Game_of_Life