Understanding the MNIST database