Bellman Ford algorithm to find negative weighted cycle