public RBTree BuildTree(TreeAssertData data) { RBTree tree = new RBTree(); foreach (var key in data.input) tree.Insert(key); return tree; }