rm_confusion_matrix function

A result metric (RM) that calculates confusion matrices