neural network classifier for handwritten digits