A Hierarchical Approach for Face Recognition