Implement Merkle hash verification