Synchronous DTW complete with pruning