bellman ford matrix ok