Robust Time-Series Retrieval Using Probabilistic Adaptive Segmental Alignment