A Min-Flow Algorithm for Minimal Critical Set Detection in Resource Constrained Project Scheduling