code for ROC curve