swap operands in difference function of fitness goals