Bellman Ford Algorithm in Data Structure