Update ALGORITHM.md