Tensorflow MLP implementaion with MNIST dataset