persistent DSU, query in O(log**2N)