use multithread to process the MNIST data