Trajectory Based Upper Body Gesture Recognition for an Assistive Robot