Link/Cut tree in dart