data structure based on a binary tree for unrooted dynamic trees that is used mainly for various path-related operations