refactor MyLinkedList