Topology question

I am trying to understand how best to connect multiple clusters to allow replication between them. In my case I would like to have a 3 node cluster in multiple data centers that replicate data so that any data center could be considered a master at any time. I am fine with newest data wins, as a conflict resolution algorithm.