Implemented functions to count alive cells
Added .gitignore

Seeing the swap files as vim is still open when I commit was annoying