Ex5: Optimized Sentence Comparison