Learning a New Selection Rule in Visual and Frontal Cortex