added the code for finding the intersection poiny in he linked list