i want to make a RedBlackTree using set or multiset with a comparator lambda function,and that function uses an array(globally for simplicity) the array is changing while pr