Tree Transformation and Neural Network Based Hand-written Formula Recognizer