documentation: added PDF diagram for algorithm