A Learning Algorithm for Avoidance of Overfitting in Funcation Approximation by Neural Networks