Optimizing 1-Nearest Prototype Classifiers