Add dihedral in ZOpt