Modified mt_bfs to take out the node field from the frontier_edge_q, which was not necessary.