Digit Recognition using Logistic Regression and Neural Networks.