merge merkle tree

- adding  PR for comments
This path needs to be more portable