fixed compute_recall.
Added the unit test.
Merge pull request #926 from caglar/fixes_recall2

Fixes compute_recall