Maximum Flow by DP