function to calculate the variance of absolute difference between voxels within a structure that are x cm apart