merge merkle tree

- adding  PR for comments
inline this comparison:
```
compare_hash(H,H) -> true;
compare_hash (_,_) -> false.
```