Add in the merkle tree code to test replication