added the initial implementation of the confusion matrix