This commit introduces a wrapper structure to encapsulate the merkle tree traversal. related issue: #36