A fast parametric maximum flow algorithm