Shape congruence and similarity