N-way multimaster replication with 2 masters