A Generalized Feedforward Neural Network Architecture and Its Training Using Two Stochastic Search Methods