Pātuhitia tēnei: Nearest-neighbor methods in learning and vision