Change BellmanFord for SPFA