Calculate precision, recall, F1, accuracy, etc. from 2x2 "contingency tables"