Optimized the call to FloyWarshall - one call to return all the paths