Data structure homework