Added dihedral group example and added functionality to utils to facilitate its addition.