Stochastic bit-stream neural networks