Changed BProp and RProp to stochastic training