Toward accurate dynamic time warping in linear time and space | Synapse