Fixed bug in GetCanonicalPair which was not reducing the word
Updated program to find automorphic images
Chains are now printed in latex form