Fast Nearest-Neighbor Retrieval under the Dynamic Time Warping