Toward a Unified Dog Theory: Understanding Pattern Recognition