Various algorithms written for Analysis of Algorithms