added code for merging 2 sorted linked list