add network flow algo, but not complete