Create life.cpp

I enjoyed this assignment. I find it quite beautiful!