Implementation of Logistic Regression (One-vs-All) and Softmax for classifying optical character recognition (OCR)