A classifier for handwritten digits using gradient descent approach (Neural networks and Logistic Regression)