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.
this is a good test but it's not really testing that the value is correct. I would run the algo on a toy dataset where I know the truth.