Added the autorestart feature.

In case the standard deviation will be higher than expected, the whole test can be restarted, up to MaximalRetriesCount value.