Similarity Measures And Indexing Methods For Time Series And Multiclass Recognition