fixed unshift: root reset

Now the root pointer is actually set to the new head node.