added intersectionlinkedlist function.