intersection of two singly linked lists