Find offset for nodes relocation.
Relocate nodes to insert a new node.