Optimize node values slightly. The need for node values to be removed and then added again is overkill. Simply reuse nodes whenever possible.