update B-tree in polynomial