Improved the findMaximumFlowSetOnFlows to be O(nlgn) instead of O(n^2)