MaxEpochsStop, MaxErrorStop criteria added (not the final version.