Density matrix calculations of the relaxation of two deuterons in an ordered medium