Coding the backpropalgorithm as per Rojas Neural Networks A Systematic Approach, 1996, ch 7.3.3.