Update algorithm.md