Prototypes selection based on similarity relations for classification problems