Stop using (foo).clean; just "clean +=" is simple and enough
Made common code for memcmp into "intdiff()".