add binning algorithm for specificity computation