0,1,2,3D MSD calculations