bellman et ford. Bug nullpointer excepetion