Shortest path function

This function returns a 51X51 matrix with distance between every state
using Floyd–Warshall algorithm