constructD function

Calculate Somers' d for the constructs.