finalized and tested output of bellmanFord()