Added optimality calculation to experimenter, and to the result template