Fixed bug in DdMd::DihedralPotentialImp.h.

Energy is now conserved in DdMd with dihedrals.