Simple neural networks for digit recognition