Finding the merging point of two linked list