exercises from data structures and algorithms book