Replace dinic algo with working one. [tested on SPOJ/FASTFLOW]