Port of UNIX cmp utility