Fix for HEX-1616. Correct calculation of best threshold confusion matrix.