A min-flow algorithm for Minimal Critical Set detection in Resource Constrained Project Scheduling