algorithm exercises in the book Algorithm Introduction