cmp2base: compare one algorithm's results with the other.