confusion function

Given actual and predicted group assignments, give the confusion matrix