MNIST OCR using neural networks