Efficient algorithm for training neural networks with one hidden layer | Synapse