Handwritten Digit Classification using Logistic Regression and Neural Networks