Changed visibility of updateNeuronWeights.

Multithreading support related