Modified mt_bfs.cc to cap frontier_edge_q size