Parser for MNIST database files.