Data Preprocessing and Similarity Measures