Forwardprop and backprop with MNIST