Adding all pairs shortest path