Check in algorithms to find the common node between two linked lists