algorithms notes added