Implementation of Perfect Phylogeny Tree