Neural Network for Kaggle digit recognition