Properly checked and corrected largest_tie() function.