Bellman-Ford algorithm fixed. Modification for PA4 is not completed.