2nd Data Structure homework