Simple C reader functions for the MNIST database of handwritten digits