Structured multi-class feature selection with an application to face recognition