A Unified Approach for Modeling and Recognition of Individual Actions and Group Activities