Changed node list from an array to a std::vector