A Fast Stochastic Error-Descent Algorithm for Supervised Learning and Optimization