program for MNIST kaggle challenge