Similar Items: Datatype defining rewrite systems for naturals and integers