Implementations of various algorithms for Analysis of Algorithms class