General code cleanup
Update .gitignore
Modify TP01 algorithms to better suit the rules