Machine Recognition of Mathematical Expressions: Machine Recognition of Printed and Handwritten Mathematical Expressions