MyLinkedList class for hw6
Linkedlist completed