parser to format species tree and gene tree.