implemented f-measure