simple bellman_ford