Improvement and Application of Hale’s Dynamic Time Warping Algorithm | Synapse