Floyd's algorithm
Enter the size of the matrix:
Go!