Modify MyLinkedList to add new nodes at end and use a tail pointer