Analytical expressions for the REM model of recognition memory