Enviar por SMS: Efficient discriminative learning of parametric nearest neighbor classifiers