the fastest approach of max flow