added FloydWarshall class + a bunch of fixes