Added evalution function to measure recallRates and some tests.