Bidirectional Trained Tree-Structured Decoder for Handwritten Mathematical Expression Recognition