Add two-phase option to shortest augmenting path maxflow algorithm