Fix to confusion matrix algorithm. Should produce the correct one noe