adding clear method to Tesseract class in order to prevent memory leaks in iOS