Ended implementation.
Main test with Kaggle Digit Recognition Competition