Text this: Comparative performance of deep learning and machine learning algorithms on imbalanced handwritten data