write a symmetry detection tool.