construct a upgma tree from dist matrix from GRIMM