82. Path sum: in 3 directions (Dijkstra's algorithm w/ priority queue)