debugged MaxFlow(Double version) and HyperANF.