merge merkle tree

- adding  PR for comments
Worth using a longer name than POS and optionally explaining why it's necessary to use a macro here for it!