Bellman–Ford algorithm - Course 2