Making a confusion matrix for the data