neuron : added update_weights()