New implementation of the MSD routine in order to use all the statistic from the trajectory