insert bugs fixed: root is null, node should set hasDatachanged=true