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.
it would be more consistent to add a assert_array_almost_equal_nulp in sklearn.utils.testing

btw why do you need assert_array_almost_equal_nulp here? It's not used anywhere else in the code base.