online match 13 and segtree