addressing reviewer comments. adding an algorithm description