Avoid product into a potentially very big number
Susceptible to overflow on platforms with 4-bytes size_t.
Handle ROC curves with multiple "best" thresholds in ci.coords