Add .gitignore
New test case addElementsDuringLoop()

Shows how to solve a problem mentioned in
http://stackoverflow.com/questions/6460320.