Simple Marzullo implementation

Implemented as described on
http://en.wikipedia.org/wiki/Marzullo%27s_algorithm