add life-algorithm