Phylip/PAML parser (the functional way)