feat: add generic DTW algorithm
style: PEP8
fix: keep finite values only