Fixed bugs in Recall, MAP, and test cases