added c++ 11 flag to CMakeLists.txt

also updated .gitignore to ignore .exe and .swp files