Added computation of precision, recall and f-measure