script to reorder columns in a spreadsheet according to a newick tree