Created new function, testScaling, to measure the times of the optimization algorithms against the scale of the scenario.