Reorganization of similarity

Similarity is now a function of representations and distance metrics