Make FMeasure throw an exception.
Add in strong boundary check of FMeasure function