added file for computing the diffusion on the hierarchical chain