https://practice.geeksforgeeks.org/problems/implementing-floyd-warshall/0