Added error checking to the setFrequency() methods to ensure frequencies remain >= 0. Replaced the array of std::pair<T, T> with an array of NodeData's.