A stochastic model of neural computing