Neural network that can be trained to recognize handwritten numerical digits