Added algorithm diagrams