calculate fmeasure given a benchmark matrix and several matrix, divided by 0 is treated as 0