new method for calculating diffusion coefficient. Set rand_walk to produce tracks with coefficient of 0.5 in each dimension.