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.
calling it height and documenting it with the word "distance" is confusing I think. Reading this I am not sure of what you return.