Use
std::vector
and std::push_heap
and friends.
std::vector
and std::push_heap
and friends.