Receiver operating characteristic curve (ROC) computation code in C++