Matrix algebras in quasi-newtonian algorithms for optimal learning in multi-layer perceptrons