Quick BFS implementation plus Akshay's Prim's for foodHeuristic