Working on .gitignore algorithm