Character-based phylogeny construction and its application to tumor evolution