The Information Theory of Similarity