Patterns, Thinking, and Cognition: A Theory of Judgment