Associative Learning via Inhibitory Search