clean up tree.dist.matrix