adds from_linkage_matrix to TreeNode

Fixes #346