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.
ok then it's a bug fix. And you create a dedicated test and document it in what's new as bug fix.