Merkle Trees for data replication in Erlang