Working Algorithm 3 and updated .gitignore

Need to add time functions.