reformat algorithm.tex