figures added to algorithm section