bellman ford for node.js