Update all_shortest_paths.hpp

Johnson's algorithm fixed (recalculation of potentials and adding edges)