Intersection of two linked lists