Prototype Selection for Classification in Standard and Generalized Dissimilarity Spaces