The Subtlety of Sameness: A Theory and Computer Model of Analogy-Making