Simultaneous learning of a discriminative projection and prototypes for Nearest-Neighbor classification