New Techniques For Continuous Optimization And Fast Algorithms For Flow