Adding floyd-warshall to map class