algorithm.txt: update algorithm