get intersection of a linkedlist