update the algorithm.tex