[ENH] 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.
Complete nitpick (feel free to ignore): I usually prefer scalars in front of vectors, when multiplying one by the other.