minor changes in algorithm.tex