Similarity, separability, and the triangle inequality.