Gesture Spotting Based on Dynamic Time Warping for Imitation Learning