Linear Data Structures - some homework