Fix for PUB-504. Return correctly oriented confusion matrix.