OCR based equation solver