Adding Precision recall measures to the code