added tests and created algorithm
added gitignore, tests, and algorithms