Understanding merge window and next-tree