Pattern-recognizing stochastic learning automata | Synapse