Updated algorithm diagrams