... idea is to implement a set as a red-black tree. Red-black trees are an efficient data structure for representing dictionaries whose keys are ordered. Here we follow the presentation by Chris Okasaki =-=[Oka99]-=-. The underlying data structure is a binary tree whose nodes are labelled with the members of the set. If we can ensure that the tree is sufficiently balanced, the height of such a tree will be logari...