Working on a framework for generalized gesture recognition