Rule Learning, Memorization Strategies, Switching Attention Between Local and Global Levels of Perception, and Optimality in Avian Visual Categorization