excersice code for corusera algorithm classes