Programs exercises of Algorithm Class Part 1, Stanford Online