A set and a map by weight-balanced binary search trees, which can be accessed by index in O(log n) time ...