Implemented local symmetry detection and support for structure-based symmetry detection.