add mathematica replicator-mutator code