An efficient generalization of Battiti-Shanno's quasi-Newton algorithm for learning in MLP-networks