A Hybrid Grammar-Based Approach for Learning and Recognizing Natural Hand Gestures