documentation added for each of the algorithms