Fixed UnionFindTree::isConnected