Modify MyLinkedList to use a dummy node