Implementation of the Bloch and Ford Fulkerson algorithms