Changed AUC calculation function