homework for algorithms class on coursera