added f-1 score function to measure.py.