Computing the closure of a relation: Floyd-Warshall Algorithm