Game of life in c