Dimensional and Similarity Structure in Classification