Beacon Floyd-Warshall Algorithm