sb tree改成循环