add sampling hierarchical code
Merge branch 'master' of https://github.com/jrising/open-estimate