To calculate rotational/translational displacement of the DNA from GROMACS MD trajectory