multi-perceptron for mnist data