Compare of two linkedlists.