chapter datastructures exercises