ward_tree: return distances

Modified `ward_tree` to return distances for both the structured and unstructured versions,
useful to have when plotting the dendrogram with scipy.
What do you mean by the distance between the clusters? Between their center? So I don't get it.