Implementation of repeats, lowering uncertainty from individual optimizations
The user can now specify a number of times to repeat each optimization. The plotting tools can take the one with the best figure of merit when showing data.
It is implemented as the first index in the scan state.