Code for matrix multiplication.
Floyd-Warshall for all pair shortest path.