separated FloydWarshall from the Matrice class