increase performance of life algoritm