Added gitignore
Implemented algorithms