Added parallel processing in BFD algorithms