Calculating confusion matrix for bagged model on test data set.