Email Record: Hierarchical algorithm for the reaction-diffusion master equation