Added copy constructors for both Node and NodeData.