reroot function

Re-root a tree along an edge