Solution to the kaggle.com digit recognizer challenge