Add Grid transform function and conway game of life rule test