fixed unshift: root reset

Now the root pointer is actually set to the new head node.
Merge pull request #2 from rajeeves/master

fixed unshift: root reset