Added floyd warshall and other simple methods