A New Concept of Higher-Order Similarity and the Role of Distance/Similarity Measures in Local Classification Methods