algorithms class notes cos 217 3700982