Working on incorporating user defined phylogenies

Implemented the default phylogeny construction algorithm and got started
on the user defined one.