A New Class of Weighted Similarity Indices Using Polytomous Variables