Update algorithm.tex