Utilization of Stochastic Automata and Genetic Algorithms for Neural Network Learning