Merkle tree hashing