Set implementation through red-black tree.