neater place to add the confusion matrix calculation
calc accuracy, with confidence interval.

based on commit 872b6693d508fe96746