merge test2 code into test1 and del some test1 codes from rbtree.*