Optimal filtering algorithms for fast learning in feedforward neural networks