General Purpose Implementation of LSTM extended from OCROPUS to recognize any sequential data