Update formatting in algorithm.md