Added evaluation functions to compute recall and precision