Use C++11 for loops
Add .gitignore