Fixed redundant declaration
Updated FloydWarshall