modified mergetwolinkedlist