Add and test the functionary of gesture recognition. However, the gesture part (SVM classification) is still slow.