scalpelStep3 function

Perform Step 3 of SCALPEL.