Replacing std::list with std::queue in PQ's external arrays.