Whole bunches of changes, this is very close to the version which I attempted to submit yesterday, discounting numerous changes to the phylogenetics code.
This version compiles and works, mostly. Probably very close to my final submission.
This version generates a balanced binary tree, but only works correctly when the number of genomes is a power of two.
Sunday submission version.