Zaslat SMS: Efficient discriminative learning of parametric nearest neighbor classifiers