Final version
Merge https://github.com/alexei37/ProgrammingAssignment2