Bupt sophomore year data structure homework