Cortical bases of elementary deductive reasoning: Inference, memory, and metadeduction