first imlimentation of roc curve