Use std::set to keep track of the flow area of a river