Added code to read MNIST files.

This code depends on files being placed
in test_imgs/mnist/ (which can be changed),
but the datsets are larger than a good size
to upload directly to GitHub.