Comp Sci LinkedList class