fix backpropagation bug in SingleLayerNN