Memory-Based Methods for Regression and Classification