Factored adjustWeights() into Matrix.
Backpropagation factoring.