How to Perform MNIST Digit Recognition with a Multi-layer Neural Network