Handwritten digit classification using logistic regression and support vector machines