Properly declare UndirectedTreeSolver inheritance as public