CS 210 assignment for implementation of a linked list class