Factored out duplicated functions in a new file Shared.hs
First implementation of a MathML parser.