algorithm class 101