Algorithm added to subfigure