Took care of the limiting cases in precision, fmeasure and MCC. Nan errors resolved