add gesture recognition algorithm, deleted SDGestureRecognizer