Simulator for MELOADES paper (http://www.sciencedirect.com/science/article/pii/S1383762113001008)