Recognition for 2d gestures from a stream of points using dynamic time warping