Implementation of Dan Gusfield's perfect phylogeny algorithm.