Congruence and Similarity 7-12: Rigid and non-rigid transformations, criteria, and the relationship to algebra