Switched parallel implementation of Bellman Ford to use Futures and only one thread pool; refactored