Implemented sequential Bellman Ford (note: slow implementation! Do not use for parallel version)