Similar Items: Templates in Rewriting Induction