Dinic with backtrack to look for a path