add copy constructor to NodeContainer