Learning from Exemplars and Prototypes in Machine Learning and Psychology