Changed MeasureStat to calculate precision, recall and f-score